<?=$userselection?>

<div id="userinfos">
	<ul>
		<li><strong><?=lang('name')?>:</strong> <?=$userdata->name?></li>
		<li><strong><?=lang('email')?>:</strong> <?=mailto($userdata->email)?></li>
		<li><strong><?=lang('username')?>:</strong> <?=$userdata->username?></li>

	<?php if (isset($userdata->url)): ?>
		<li><strong><?=lang('url')?>:</strong> <?=auto_link($userdata->url);?></li>
	<?php endif; ?>
	<?php if (isset($userdata->messenger)): ?>
		<li><strong><?=$userdata->messenger->type?>:</strong> <?=$userdata->messenger->value?></li>
	<?php endif; ?>

	</ul>
</div>

<?php if (isset($chart_matchdaypoints)): ?>
<h3>Punkte pro Spieltag</h3>
<p class="center">
	<img src="<?=site_url('/statistics/chart/'.$chart_matchdaypoints)?>" />
</p>
<?php endif; ?>


<?php if ($isOwner): ?>

<h3><a name="form"><?=lang('change_userdata')?></a></h3>

<?=form_open('user/save')?>

	<?=lang('messenger','messenger_type')?>:<br/>
	<select name="messenger_type">
		<option value="ICQ">ICQ</option>
		<option value="MSN">MSN</option>
		<option value="Skype">Skype</option>
		<option value="Jabber">Jabber</option>
	</select>
	<input size="30" maxlength="30" type="text" name="messenger_value" value="<? if (isset($userdata->messenger)) echo $userdata->messenger->value?>"/><br/>
	<?=lang('url','url')?>:<br/>
	<input size="45" maxlength="45" type="text" name="url" value="<? if (isset($userdata->url)) echo $userdata->url;?>"/><br/>

	<?=lang('password','password')?>:<br/>
	<input size="45" maxlength="45" type="password" name="password" value=""/><br/>

	<?=lang('password_retype','retype')?>:<br/>
	<input size="45" maxlength="45" type="password" name="retype" value=""/><br/>

	<input class="submit" type="submit" value="<?=lang('change_userdata')?>" />
<?=form_close();?>

<?php endif; ?>

